<%@page language="java" import="com.scalar.chiptrack.finance.purchaseorder.PurchaseOrder" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML>
<HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<chiptrack:checkLogon sourcePage="purchaseOrder.do"/>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<SCRIPT language="JavaScript">

    function printableVersion()
    {
        var poNumber = '<%=  request.getAttribute("poNumber") != null ?  ((String)request.getAttribute("poNumber")).replaceAll( "'", "\\\\'" ) : "" %>';
        window.open ('<%=chipTracContext%>/purchaseOrder.do?action=printerFriendly&poNumber='+poNumber,'optionsPopup','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=yes,scrollbars=yes,width=900,height=700,resizable=yes,screenX=5,screenY=55,left=50,top=40');
    }

    function showErrorReportPage()
    {
        newWindow = window.open ('<%=chipTracContext%>/reportProblem.do','reportProblem','channelmode=no,directories=no,toolbar=no,menubar=no,personalbar=no,status=no,scrollbars=no,width=750,height=400,resizable=no');
        newWindow.focus();
    }
    //Print Friendly Screen Calls refresh method.
    function refresh()
    {
        return;
    }
</SCRIPT>
<META content="MSHTML 5.50.4807.2300" name=GENERATOR></HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">
<!-- Top Header Start-->

<%@ include file="/jsp/includes/header.jsp" %>

<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->

<%@include file="/jsp/finance/purchase_order_menu.jsp" %>

<!-- end of the side navigations -->
    </TD>

    <TD bgcolor="#ffffff">
        <IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8>
    </TD>
    <TD bgcolor="#ffffff">
        <IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2>
    </TD>
    <TD valign="top" width="100%">
        <!-- SiteMap Tag --><%--
        <chiptrack:sitemap styleClass="NArialS"/>--%>

        <chiptrack:permission functionality='<%=Functionality.PURCHASE_ORDER%>'
            action='<%=User.USER_ACTION_MODIFY%>' styleClass="NArialL" >
        </chiptrack:permission>


        <IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
        <BR>
<!-- from here your body starts -->


<html:form name="ordersForm" onsubmit="return searchOrderList(document.ordersForm);" method="post" action="/changeOrders" type="com.scalar.chiptrack.sales.forms.OrdersForm">

<!-- <center><span class="NArialW">Search for Purchase Order to modify </span></center> -->
<img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10>

<div align=right>
<table border="0" width="90%">
 <tr><td>
    <chiptrack:info styleClass="NArialL" />
    <chiptrack:errors styleClass="NArialL" />
    <chiptrack:messages type="info" styleClass="NArialL" />
 </td></tr>
</table>
</div>

</html:form>

<!-- till here -->
<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>
<!-- Footer starts here -->

<%@ include file="/jsp/includes/footer.jsp" %>

<!-- footer end here -->
</BODY>
</HTML>
